package com.aloha.common.event;

import com.aloha.po.User;
import com.aloha.springframework.context.ApplicationListener;
import com.aloha.springframework.stereotype.Component;
import lombok.extern.slf4j.Slf4j;

/**
 * @author DaiZhiHeng
 * @date 2023/7/26 19:55
 */
@Slf4j
@Component
public class UserRegisterListener implements ApplicationListener<UserRegisterEvent> {

    @Override
    public void onApplicationEvent(UserRegisterEvent userRegisterEvent) {
        User user = userRegisterEvent.getUser();
        log.info("获取注册用户信息：{}", user.toString());
        log.info("用户注册中....");
        log.info("注册成功！");
    }
}

